<template>
  <div>
    <swiper>
      <swiper-item v-for="item in banner">
        <a :href="item.link">
          <img :src="item.image" alt="" @load="imageSwiper">
        </a>
      </swiper-item>
    </swiper>
  </div>
</template>

<script>
  import Swiper from "../../../components/common/swiper/Swiper";
  import SwiperItem from "../../../components/common/swiper/SwiperItem";
  export default {
    name: "HomeSwiper",
    components: {
      SwiperItem,
      Swiper,
    },
    props: {
      banner:{
        type: Array,
        default: []
      }
    },
    methods: {
      imageSwiper(){
        this.$emit('imageSwiper')
      }
    }
  }
</script>

<style scoped>

</style>